package org.maiyoframework.assist.service;

import java.io.Serializable;

import javax.annotation.Resource;

import org.maiyoframework.assist.dao.UserResDao;
import org.maiyoframework.assist.entity.User;
import org.maiyoframework.assist.entity.UserRes;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserResSvcImpl implements UserResSvc {

	public UserRes findById(Serializable id) {
		return dao.findById(id);
	}

	public void updateDynamic(UserRes entity, User user) {
		entity.setUser(user);
		dao.updateDynamic(entity);
	}

	@Resource
	private UserResDao dao;

}
